[SPARK-20501] [ML] ML 2.2 QA: New Scala APIs, docs#17934
[SPARK-20501] [ML] ML 2.2 QA: New Scala APIs, docs#17934yanboliang wants to merge 4 commits intoapache:masterfrom
Conversation
|
Test build #76742 has finished for PR 17934 at commit
|
| */ | ||
| @Since("2.2.0") | ||
| def setThreshold(value: Double): this.type = set(threshold, value) | ||
| setDefault(threshold -> 0.0) |
There was a problem hiding this comment.
Typo, reverted, thanks.
| */ | ||
| @Since("1.4.0") | ||
| class StringIndexerModel ( | ||
| class StringIndexerModel private[ml] ( |
There was a problem hiding this comment.
Hmm, making this private now will break user code if it is used, no? It's unfortunate that it wasn't private before, but do we want to do this?
There was a problem hiding this comment.
We make this public by mistake, so I think we should fix this bug. AFAIK, this is the only model whose constructor is public, so there is little chance to break user code. And I think it makes sense to break user code by fixing bug. Thanks.
There was a problem hiding this comment.
I thought this was made public on purpose. StringIndexerModel is one case where it makes sense for users to create it manually (if they already have a list of the possible Strings).
There was a problem hiding this comment.
OK, I reverted back. Thanks.
| */ | ||
| @Experimental | ||
| @Since("2.2.0") | ||
| class ImputerModel private[ml]( |
There was a problem hiding this comment.
nit: should be a space between private[ml] and the (
|
Test build #76746 has finished for PR 17934 at commit
|
|
@MLnick Thanks for your kindly remind, the change for |
|
Test build #76751 has finished for PR 17934 at commit
|
| * Linear SVM Classifier</a> | ||
| * | ||
| * This binary classifier optimizes the Hinge Loss using the OWLQN optimizer. | ||
| * Only supports L2 regularization currently. |
There was a problem hiding this comment.
is this something should be mentioned in R too?
There was a problem hiding this comment.
@felixcheung Yeah, it should be. However, since SparkR exposed more MLlib APIs during 2.2 releasing cycle, I'm preparing a separate PR to audit new SparkR MLlib APIs which would include this update. Thanks.
|
Test build #76956 has finished for PR 17934 at commit
|
|
LGTM |
## What changes were proposed in this pull request? Review new Scala APIs introduced in 2.2. ## How was this patch tested? Existing tests. Author: Yanbo Liang <ybliang8@gmail.com> Closes #17934 from yanboliang/spark-20501. (cherry picked from commit dbe8163) Signed-off-by: Joseph K. Bradley <joseph@databricks.com>
## What changes were proposed in this pull request? Review new Scala APIs introduced in 2.2. ## How was this patch tested? Existing tests. Author: Yanbo Liang <ybliang8@gmail.com> Closes apache#17934 from yanboliang/spark-20501.
## What changes were proposed in this pull request? Review new Scala APIs introduced in 2.2. ## How was this patch tested? Existing tests. Author: Yanbo Liang <ybliang8@gmail.com> Closes apache#17934 from yanboliang/spark-20501.
What changes were proposed in this pull request?
Review new Scala APIs introduced in 2.2.
How was this patch tested?
Existing tests.